package org.jeecg.modules.assets.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.assets.dto.AssetsApplyDTO;
import org.jeecg.modules.assets.dto.AssetsItemDTO;
import org.jeecg.modules.assets.dto.CompanyDTO;
import org.jeecg.modules.assets.entity.AssetsItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.assets.vo.ApplyAndReturnItem;

/**
 * @Description: 资产明细
 * @Author: jeecg-boot
 * @Date:   2023-12-12
 * @Version: V1.0
 */
public interface AssetsItemMapper extends BaseMapper<AssetsItem> {

    IPage<AssetsItemDTO> queryPageListBydept(@Param("page")Page<AssetsItemDTO> page, @Param("dept") Integer dept, @Param("company") String COMPANY,@Param("assetName") String assetName);

    List<String> getAllCompanyCode();

    List<CompanyDTO> getCompanyByUser(@Param("realname") String realname);

    List<ApplyAndReturnItem> getApplyAndReturn(@Param("id") Integer id);

    IPage<AssetsApplyDTO> queryPageListByApply(@Param("page") Page page,@Param("item")AssetsApplyDTO assetsItem);
}
